package com.ruoyi.kindergarten.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kindergarten.mapper.EnvironmentIndicatorMapper;
import com.ruoyi.kindergarten.domain.EnvironmentIndicator;
import com.ruoyi.kindergarten.service.IEnvironmentIndicatorService;

/**
 * 环境指标记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-26
 */
@Service
public class EnvironmentIndicatorServiceImpl implements IEnvironmentIndicatorService 
{
    @Autowired
    private EnvironmentIndicatorMapper environmentIndicatorMapper;

    /**
     * 查询环境指标记录
     * 
     * @param id 环境指标记录主键
     * @return 环境指标记录
     */
    @Override
    public EnvironmentIndicator selectEnvironmentIndicatorById(Long id)
    {
        return environmentIndicatorMapper.selectEnvironmentIndicatorById(id);
    }

    /**
     * 查询环境指标记录列表
     * 
     * @param environmentIndicator 环境指标记录
     * @return 环境指标记录
     */
    @Override
    public List<EnvironmentIndicator> selectEnvironmentIndicatorList(EnvironmentIndicator environmentIndicator)
    {
        return environmentIndicatorMapper.selectEnvironmentIndicatorList(environmentIndicator);
    }

    /**
     * 新增环境指标记录
     * 
     * @param environmentIndicator 环境指标记录
     * @return 结果
     */
    @Override
    public int insertEnvironmentIndicator(EnvironmentIndicator environmentIndicator)
    {
        return environmentIndicatorMapper.insertEnvironmentIndicator(environmentIndicator);
    }

    /**
     * 修改环境指标记录
     * 
     * @param environmentIndicator 环境指标记录
     * @return 结果
     */
    @Override
    public int updateEnvironmentIndicator(EnvironmentIndicator environmentIndicator)
    {
        return environmentIndicatorMapper.updateEnvironmentIndicator(environmentIndicator);
    }

    /**
     * 批量删除环境指标记录
     * 
     * @param ids 需要删除的环境指标记录主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentIndicatorByIds(Long[] ids)
    {
        return environmentIndicatorMapper.deleteEnvironmentIndicatorByIds(ids);
    }

    /**
     * 删除环境指标记录信息
     * 
     * @param id 环境指标记录主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentIndicatorById(Long id)
    {
        return environmentIndicatorMapper.deleteEnvironmentIndicatorById(id);
    }
}
